<script>
	import {HTTP_REQUEST_URL, WEXIN_APPID} from '@/config.js';
	export default {
		globalData:{
			baseUrl: HTTP_REQUEST_URL,
			appId: WEXIN_APPID,
			
			statusBarHeight:'',
			screenHeight:'',
			isShowLoading:false,
		},
		onLaunch: function(e) {
			let that=this
			uni.getSystemInfo({
				success(res) {
					that.globalData.statusBarHeight = res.statusBarHeight
					that.globalData.screenHeight = res.screenHeight
				}
			})
		},
		onShow: function(e) {
			if(e.referrerInfo.extraData){
				let that=this
					if(e.referrerInfo.extraData.return_msg=='录入成功'){
						let list=[]
						let id=uni.getStorageSync('id')
						list.push(id)
						this.$http('/minprogram/api/member/gather',list,res=>{})
					}else if(e.referrerInfo.extraData.return_msg=='开通成功'){
						that.globalData.isShowLoading = true
						let list=[]
						list.push(uni.getStorageSync('info').id)
						this.$http('/minprogram/api/member/gather',list,res=>{
							uni.reLaunch({
								url:'/pages/index/index?type=2'
							})
						})
					}
			}
			// 采集 minprogram/api/member/sign return_msg  .return_code=='SUCCESS'
		},
		onHide: function() {}
	}
</script>

<style lang="scss">
	@import "@/uni_modules/uview-ui/index.scss";
	page { 
		background: linear-gradient(#f5b957 0%, #fcebcf 30%,  #fff 40%);
		background-repeat: no-repeat;
	}
	image,view,text{ box-sizing: border-box; }
	button::after{ border: none; }
	.container{
		margin: 30upx 34upx;
		border-radius: 16upx;
		padding: 20upx;
		background: rgba(255, 255, 255, 0.6);
	}
	.ui-two-box{
		background: #fff;
		border-radius: 16upx;
		/* box-shadow: 0 0 15upx rgba(247, 200, 122, .2); */
		box-shadow: 0 3upx 20upx 1upx rgba(247, 200, 122, .2);
		padding: 1upx;
	}
	
	/* 小标题左侧竖杠 */
	.left-line{
		display: flex;
		align-items: center;
	}
	.left-line::before{
		content: '';
		width: 10upx;
		height: 30upx;
		display: inline-block;
		margin-right: 12upx;
		background: linear-gradient(#fe8f04, #fff);
	}
	.ws-privacy-popup {
		padding: 26upx;
		box-sizing: border-box;
		overflow: hidden;
		width: 560upx;
		// background: linear-gradient(180deg, #e5edff 0%, #ffffff 100%);
		background: linear-gradient(#fe8f04 0%, #def2f0 52%,  #fff 60%);
		border-radius: 24upx;
		position: fixed;
		bottom: 260upx;
		left: 50%;
		margin-left: -280upx;
		z-index: 999;
		box-shadow: 0 3upx 20upx 1upx rgba(247, 200, 122, .2);
	
		.ws-privacy-popup__header {
			display: flex;
			align-items: center;
			justify-content: center;
			width: 100%;
			height: 36upx;
			font-size: 32upx;
			font-weight: 550;
			color: #1a1a1a;
			line-height: 36upx;
			margin-bottom: 16upx;
		}
	
		&__container {
			width: 100%;
			box-sizing: border-box;
			font-size: 28upx;
			font-weight: 400;
			color: #333333;
			line-height: 48upx;
			margin-bottom: 48upx;
	
			&-protocol {
				font-weight: 550;
				color: #1c64fd;
			}
		}
	
		&__footer {
			display: flex;
			flex-direction: column;
	
			.is-disagree,
			.is-agree {
				width: 100%;
				height: 88upx;
				background: #ffffff;
				border-radius: 44upx;
				font-size: 32upx;
				font-weight: 400;
				color: #666666;
			}
	
			.is-agree {
				// background: #1c64fd;
				background: #fe8f04;
				color: #ffffff;
				margin-bottom: 18upx;
			}
	
			button {
				border: none;
				outline: none;
	
				&::after {
					border: none;
				}
			}
		}
	}
	/*每个页面公共css */
</style>
